extends ../main_temp

block panelHeading
    h3.panel-title #{title}

block panelBody
    form(class="form-horizontal col-md-6 col-md-offset-3")&attributes({action: "/book/save.do", method: "post"})
        input(type="hidden" name="id" value=`${editObj ? editObj.id : ""}`)
        .form-group
            label(class="col-sm-4 control-label") 书本名称
            .col-sm-8
                input(type="text" name="name" value=`${editObj ? editObj.name : ""}` class="form-control input-sm" placeholder="书本名称")
        .form-group
            label(class="col-sm-4 control-label") 单价
            .col-sm-8
                input(type="number" name="price" value=`${editObj ? editObj.price : ""}` class="form-control input-sm" placeholder="单价")
        .form-group
            label(class="col-sm-4 control-label") 数量
            .col-sm-8
                input(type="number" name="count" value=`${editObj ? editObj.count : ""}` class="form-control input-sm" placeholder="数量")
        .form-group
            label(class="col-sm-4 control-label") 添加日期
            .col-sm-8
                input(type="date" name="createDate" value=`${editObj ? editObj.createDate : ""}` class="form-control input-sm" placeholder="添加日期")
        button(type="submit" style="float: right;" class="btn btn-danger btn-sm") 保存
